<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
</head>
<body>
<div id="app">
    <div v-if="name==='张学友'">
        张学友
    </div>
    <div v-else-if="name==='刘德华'">
        刘德华
    </div>
    <div v-else-if="name==='卡扎菲'">
        卡扎菲
    </div>
    <div v-else="name==='其他王'">
        其他王
    </div>
    <hr>
    <div v-if="name==='刘德华'">
        v-if
    </div>
    <div v-show="name==='刘德华' ">
        v-show
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el: "#app",
            data: {

                name: "刘德华1"

            }

        })
    </script>
</body>
</html>